﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;
using System.Windows.Forms;
using MyHotel.MyHotel_MHPhong_BUS_Webservice;

namespace MyHotel
{
    class RoomStateHiring : StateRoom
    {
        public override Image getImage()
        {
            return Properties.Resources.dangthue;
        }

        public override void LeftClick(Phong p, uscRoom room)
        {
            frmThanhToan frm = new frmThanhToan(p);
            if (frm.ShowDialog() == DialogResult.OK)
            {
                room.State = new RoomStateBlank();
            }
        }

        public override void RightClick(Phong p, uscRoom room)
        {
            MessageBox.Show("Phong dang thue Right Click");
        }

        public override Color getTextColor()
        {
            return Color.White;
        }

        public override string getNameState()
        {
            return "Đang Thuê";
        }

        public override StateRoom Clone()
        {
            return new RoomStateHiring();
        } 
    }
}
